using rbac.contracts.Dto.Input;
using rbac.contracts.Dto.Output;

namespace rbac.contracts.Interface;

public interface IRolePermissionService
{
    /// <summary>
    /// 为角色分配权限
    /// </summary>
    /// <param name="input">权限列表</param>
    /// <returns></returns>
    int DistributeRolePermission(DistributeRolePermissionsInput input);
    
    /// <summary>
    /// 权限角色获取权限列表
    /// </summary>
    /// <param name="roleId">角色</param>
    /// <returns></returns>
    List<PermissionDto> GetPermissionByRoleId(int roleId);
}